﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Admx_Generator
{
    public partial class FrmInputBox : Form
    {
        public FrmInputBox()
        {
            InitializeComponent();
            this.fltTxtBxInput.Select();
        }

        /// <summary>
        /// Set the title of the window.
        /// </summary>
        public string Title { set { this.Text = value; } }

        /// <summary>
        /// Set the question that will be ask to the user.
        /// </summary>
        public string Description { set { this.lblDescription.Text = value; } }

        /// <summary>
        /// Gets or Sets the text displayed in the TextBox where the user type the answer.
        /// </summary>
        public string UserInput { get { return this.fltTxtBxInput.Text; } set { this.fltTxtBxInput.Text = value; } }

        /// <summary>
        /// Get the FilteredTextbox control to set its properties
        /// </summary>
        public EasyCompany.Controls.FilteredTextbox FilteredTextbox { get { return this.fltTxtBxInput; } }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

    }
}
